<%@ Page Language="C#" MasterPageFile="Employee.master" AutoEventWireup="true" CodeFile="DeliveryDetail.aspx.cs" Inherits="DeliveryDetail" Title="Delivery Details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 400px">
        <tr>
            <td style="width: 150px; height: 30px" valign="top">
                <asp:Label ID="Label1" runat="server" Text="Delivery No."></asp:Label></td>
            <td style="width: 250px" valign="top">
                &nbsp;<asp:Label ID="Label10" runat="server" Font-Bold="True"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 150px" valign="top">
                <asp:Label ID="Label3" runat="server" Text="Weight"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtWeight" runat="server" Width="70px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Weight cannot be blank!" ControlToValidate="txtWeight"></asp:RequiredFieldValidator>
                <br /><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtWeight"
                    ErrorMessage="Weight must be a number!" ValidationExpression="\d+(.\d+)?"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 150px" valign="top">
                <asp:Label ID="Label2" runat="server" Text="Date of Posting"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtPost" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPost"
                    ErrorMessage="Date of Posting cannot be blank!"></asp:RequiredFieldValidator><br />
                <asp:RangeValidator ID="rvDOP" runat="server" ControlToValidate="txtPost"
                    ErrorMessage="Invalid Date! Please try again."></asp:RangeValidator></td>
        </tr>
        <tr>
            <td style="width: 150px" valign="top">
                <asp:Label ID="Label4" runat="server" Text="Service ID"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtService" runat="server" Width="70px">3</asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtService"
                    ErrorMessage="Service ID cannot be blank!"></asp:RequiredFieldValidator><br />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtService"
                    ErrorMessage="Service ID must be an integer!" ValidationExpression="\d+"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 150px" valign="top">
                <asp:Label ID="Label5" runat="server" Text="Destination Address"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtDest" runat="server">Delhi</asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtDest"
                    ErrorMessage="Destination Address cannot be blank!"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td style="width: 150px" valign="top">
                <asp:Label ID="Label6" runat="server" Text="Customer ID"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtCust" runat="server" Width="70px">2</asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtCust" ErrorMessage="Customer ID cannot be blank!"></asp:RequiredFieldValidator><br /><asp:RegularExpressionValidator
                        ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtCust"
                        ErrorMessage="Customer ID must be an integer!" ValidationExpression="\d+"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 150px" valign="top">
                <asp:Label ID="Label7" runat="server" Text="Feetype ID"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtFeetype" runat="server" Width="70px">3</asp:TextBox><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator6" runat="server" ControlToValidate="txtFeetype" ErrorMessage="Feetype ID cannot be blank!"></asp:RequiredFieldValidator><br /><asp:RegularExpressionValidator
                        ID="RegularExpressionValidator4" runat="server" ControlToValidate="txtFeetype"
                        ErrorMessage="Feetype ID must be an integer!" ValidationExpression="\d+"></asp:RegularExpressionValidator></td>
        </tr>
        <tr>
            <td style="width: 150px; height: 50px;" valign="top">
                <asp:Label ID="Label8" runat="server" Text="Status"></asp:Label></td>
            <td style="height: 50px" valign="top">
                <asp:DropDownList ID="cbxStatus" runat="server">
                    <asp:ListItem Value="0">Pending</asp:ListItem>
                    <asp:ListItem Value="1">Sent</asp:ListItem>
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 150px" valign="top">
                <asp:Label ID="Label9" runat="server" Text="Receive Date"></asp:Label></td>
            <td>
                <asp:TextBox ID="txtReceive" runat="server"></asp:TextBox><br /><asp:RequiredFieldValidator
                    ID="RequiredFieldValidator7" runat="server" ControlToValidate="txtReceive" ErrorMessage="Reveive Date cannot be blank!"></asp:RequiredFieldValidator><br /><asp:RangeValidator
                        ID="rvReceive" runat="server" ControlToValidate="txtReceive" ErrorMessage="Invalid Date! Please try again."></asp:RangeValidator></td>
        </tr>
        <tr>
            <td style="width: 150px; height: 50px;" align="right" valign="top">
                <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click" /></td>
            <td style="height: 30px" valign="top">
                <asp:Button ID="btnBack" runat="server" Text=" Back " CausesValidation="False" />
                </td>
        </tr>
        <tr>
            <td align="center" colspan="2" style="height: 50px" valign="top">
                <asp:Label ID="Label11" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="Lime"></asp:Label></td>
        </tr>
    </table>
</asp:Content>

